#-*- coding:utf-8 -*-
# Author:Ami
import  json
# import pickle
def sayhi(name):
    print("hello",name)

info = {
    'name':'ami',
    'age':22,
   #'func':sayhi
}
f= open("test.test","w")
f.write(json.dumps(info))

info["age"] = 18
f.write(json.dumps(info))
f.close()